package com.example.config;

import com.example.constants.RabbitConts;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    @Bean
    public Queue SimpleQueue()
    {
        return new Queue(RabbitConts.EMAIL_QUEUES);
    }
    @Bean
    public Queue SimpleQueue1(){
        return new Queue(RabbitConts.PHONE_QUEUES);
    }
}
